<?php

namespace MLM\Model\Member;


class Contact extends \MLM\Model\Generic\Object\Mapper {
    protected $_storage;

    public function __construct(\MLM\Model\Member\Contact\Storage $storage) {
        $this->_storage = $storage;
        
        parent::__construct(
                array(), 
                array(
                    'member_id'         => 'memberId',
                    'contact_id'        => 'contactId',
                    'contact_type_id'   => 'typeId',
                    'start_dat'         => 'startDat',
                    'end_dat'           => 'endDat'
                )
        );
    }
    
    public function save(){
        return $this->_storage->save($this);
    }
}
